package com.lg.erp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lg.erp.entity.SMenu;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ligen
 * @since 2021-04-12
 */
public interface IMenuService extends IService<SMenu> {

    List<SMenu> findFunctionsByUsername(String username);

    List<SMenu> findAllFunctions();

    List<SMenu> findFunctionsByRoleId(String id);

    IPage<SMenu> getFunctionsByPage(Page<SMenu> page);
}
